package com.epam.facebook_client.api;


public class API {

	public static final String BASE_PATH = "https://graph.facebook.com/";
	
	public static final String ME = BASE_PATH + "me";
	
	public static final String ME_HEAD = BASE_PATH + "me?fields=email,bio,birthday,id,gender,name,quotes&request_type=get&need_oauth=true";
	
	public static final String FRIENDS = ME + "/friends?fields=email,bio,birthday,id,gender,name,quotes&request_type=get&need_oauth=true&limit=0";
	
	public static final String ALBUMS_GET = ME + "/albums?request_type=get&need_oauth=true&limit=0";
	
	public static final String ALBUMS_POST = ME + "/albums?request_type=post&need_oauth=true";
	
	public static final String FEED_GET = ME + "/home?fields=id,from,story,type,picture,description,message,link,created_time&request_type=get&need_oauth=true&limit=50";
	
	public static final String FEED_POST = ME + "/feed?request_type=post&need_oauth=true";
	
	public static final String HOME = ME + "/home?request_type=get&need_oauth=true";
	
	public static final String PHOTOS_GET = "/photos?request_type=get&need_oauth=true&limit=100";
	
	public static final String PHOTO_POST = "/photos?request_type=post&need_oauth=true";
	
	public static final String PICTURE = "/picture?request_type=get&need_oauth=true";
	
	public static final String TYPE_NORMAL = "&type=normal";
	
	public static final String TYPE_SQUARE = "&type=square";
	
	public static final String TYPE_LARGE = "&type=large";
	
	public static final String REQ_TYPE_GET_OAUTH = "&request_type=get&need_oauth=true";

	public static String getPictureNormal(String id) {
		return BASE_PATH + id + PICTURE + TYPE_NORMAL;
	}

	public static String getPictureSquare(String id) {
		return BASE_PATH + id + PICTURE + TYPE_SQUARE;
	}

	public static String getPictureLarge(String id) {
		return BASE_PATH + id + PICTURE + TYPE_LARGE;
	}

	public static String getCover(String id) {
		return BASE_PATH + id + PICTURE;
	}
	
	public static String getDeleteUrl(String id){
		return BASE_PATH + id + "?request_type=post&need_oauth=true";
	}
	
	public static String getPostPhotoLink(String idAlbum){
		return BASE_PATH + idAlbum + PHOTO_POST;
	}
	
	public static String getPhotosLink(String idAlbum){
		return BASE_PATH + idAlbum + PHOTOS_GET;
	}
	
	public static String getProfile(String id){
		return BASE_PATH + id + "?request_type=get&need_oauth=true";
	}
	
	public static String getAlbums(String id){
		return BASE_PATH + id + "/albums?request_type=get&need_oauth=true";
	}
	
}
